PublicApi
All URIs are relative to //api.estuary.tech/
Method | HTTP request | Description |
---|---|---|
getCidGet | GET /get/{cid} | Get Full Content by Cid |
publicByCidCidGet | GET /public/by-cid/{cid} | Get Content by Cid |
publicInfoGet | GET /public/info | Get public node info |
publicMetricsDealsOnChainGet | GET /public/metrics/deals-on-chain | Get deal metrics |
publicMinersDealsMinerGet | GET /public/miners/deals/{miner} | Get all miners deals |
publicMinersFailuresMinerGet | GET /public/miners/failures/{miner} | Get all miners |
publicMinersStatsMinerGet | GET /public/miners/stats/{miner} | Get miner stats |
publicNetAddrsGet | GET /public/net/addrs | Net Addrs |
publicNetPeersGet | GET /public/net/peers | Net Peers |
publicStatsGet | GET /public/stats | Public stats |
getCidGet
getCidGet(cid)
Get Full Content by Cid
This endpoint returns the content associated with a CID
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
String cid = "cid_example"; // String | Cid
try {
apiInstance.getCidGet(cid);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#getCidGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
cid | String | Cid |
Return type
null (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicByCidCidGet
String publicByCidCidGet(cid)
Get Content by Cid
This endpoint returns the content record associated with a CID
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
String cid = "cid_example"; // String | Cid
try {
String result = apiInstance.publicByCidCidGet(cid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicByCidCidGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
cid | String | Cid |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicInfoGet
ApiPublicNodeInfo publicInfoGet()
Get public node info
This endpoint returns information about the node
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
try {
ApiPublicNodeInfo result = apiInstance.publicInfoGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicInfoGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicMetricsDealsOnChainGet
String publicMetricsDealsOnChainGet()
Get deal metrics
This endpoint is used to get deal metrics
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
try {
String result = apiInstance.publicMetricsDealsOnChainGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicMetricsDealsOnChainGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicMinersDealsMinerGet
String publicMinersDealsMinerGet(miner, ignoreFailed)
Get all miners deals
This endpoint returns all miners deals
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
String miner = "miner_example"; // String | Filter by miner
String ignoreFailed = "ignoreFailed_example"; // String | Ignore Failed
try {
String result = apiInstance.publicMinersDealsMinerGet(miner, ignoreFailed);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicMinersDealsMinerGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
miner | String | Filter by miner | |
ignoreFailed | String | Ignore Failed | [optional] |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicMinersFailuresMinerGet
String publicMinersFailuresMinerGet(miner)
Get all miners
This endpoint returns all miners
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
String miner = "miner_example"; // String | Filter by miner
try {
String result = apiInstance.publicMinersFailuresMinerGet(miner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicMinersFailuresMinerGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
miner | String | Filter by miner |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicMinersStatsMinerGet
String publicMinersStatsMinerGet(miner)
Get miner stats
This endpoint returns miner stats
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
String miner = "miner_example"; // String | Filter by miner
try {
String result = apiInstance.publicMinersStatsMinerGet(miner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicMinersStatsMinerGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
miner | String | Filter by miner |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicNetAddrsGet
List<String> publicNetAddrsGet()
Net Addrs
This endpoint is used to get net addrs
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
try {
List<String> result = apiInstance.publicNetAddrsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicNetAddrsGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
List<String>
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicNetPeersGet
List<String> publicNetPeersGet()
Net Peers
This endpoint is used to get net peers
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
try {
List<String> result = apiInstance.publicNetPeersGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicNetPeersGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
List<String>
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicStatsGet
String publicStatsGet()
Public stats
This endpoint is used to get public stats.
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PublicApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
try {
String result = apiInstance.publicStatsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicStatsGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json